import Vue from "vue"
import Router from "vue-router"
import Index from "@/views/Index"
import Ranking from "@/views/Ranking"
import VideoMessage from "@/views/VideoMessage"
import Movie from "@/views/Movie"
import Kind from "@/views/Kind"
import FilmComment from "@/views/FilmComment"
import TelePlay from "@/views/TelePlay"
import Register from "@/views/Register"
import Login from "@/views/Login"
import FilmDetails from "@/views/FilmDetails"
import CommentDetails from "@/views/CommentDetails"
import SearchResult from "@/views/SearchResult"
import SearchCustomer from "@/views/searchCustomer"
Vue.use(Router)

export default new Router({
    routes: [{
        path: "/login",
        name: "Login",
        component: Login
    },
    {
        path: "/reg",
        name: "Register",
        component: Register
    },
    {
        path: "/",
        name: "Index",
        component: Index
    },
    {
        path: "/ranking",
        name: "Ranking",
        component: Ranking
    },
    {
        path: "/video_message",
        name: "VideoMessage",
        component: VideoMessage
    },
    {
        path: "/movie",
        name: "Movie",
        component: Movie
    },
    {
        path: "/kind",
        name: "Kind",
        component: Kind
    },
    {
        path: "/film_comment",
        name: "FilmComment",
        component: FilmComment
    },
    {
        path: "/tele_play",
        name: "TelePlay",
        component: TelePlay
    },
    {
        path: "/film_details",
        name: "FilmDetails",
        component: FilmDetails
    },
    {
        path: "/comment_details",
        name: "CommentDetails",
        component: CommentDetails
    },
    {
        path: "/search-result",
        name: "SearchResult",
        component: SearchResult
    },
    {
        path: "/SearchCustomer",
        name: "SearchCustomer",
        component: SearchCustomer
    }
    ]
})
